<?php /* Smarty version 2.6.26, created on 2013-04-25 21:30:07
         compiled from mins_delive_form.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'mins_delive_form.html', 107, false),array('modifier', 'escape', 'mins_delive_form.html', 114, false),)), $this); ?>
<?php echo '<?xml'; ?>
 version="1.0" encoding="utf-8"<?php echo '?>'; ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Script-Type" content="text/javascript" />
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<title>コントロールパネル</title>
		<link rel="stylesheet" href="./assets/styles/default.css" type="text/css" />
		
		<link rel="stylesheet" href="./assets/styles/ui-lightness/ui.all.css" type="text/css" />
		
		<link rel="stylesheet" href="./assets/styles/ui-lightness/jquery-ui-1.7.3.custom.css" type="text/css" />
		<link rel="stylesheet" href="./assets/styles/dialog.css" type="text/css" />
		
		<script src="assets/scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
		<script src="assets/scripts/jquery-ui-1.7.3.custom.min.js" type="text/javascript"></script>
		<script src="assets/scripts/ui/ui.dialog.js" type="text/javascript"></script>
		
		
		<script src="assets/scripts/menu.js" type="text/javascript"></script>
		<script src="assets/scripts/table.js" type="text/javascript"></script>
		<script type="text/javascript" src="./tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
		<script type="text/javascript" src="./assets/scripts/editor.js"></script>
		<script type="text/javascript" src="./assets/scripts/ui/ui.datepicker.js"></script>
		<script type="text/javascript" src="./assets/scripts/ui/ui.core.js"></script>

		<script type="text/javascript">
		$(function() {
			$('.message').fadeIn("slow");
			$('.btn_regist').click(function(){
				if( confirm('登録してよろしいですか？') ){
					document.fm.mode.value = 'input';
					document.fm.submit();
				}
			});
			
			$('.btn_update').click(function(){
				if( confirm('更新してよろしいですか？') ){
					document.fm.mode.value = 'input';
					document.fm.submit();
				}
			});
			$('.btn_return').click(function(){
				location.href = "mins_delive_index.php?hist=2";
			});
		});
	</script>
		
	</head>
	<body id="">
<?php echo $this->_tpl_vars['menu']; ?>

<?php echo $this->_tpl_vars['logout']; ?>

		<div id="container"><div class="wrapper">
			<h2>折込販売店マスター管理</h2>
			 <ul class="submenu clearfix">
				<li><a href="minsshop_index.php">折込販売店情報一覧</a></li>
				<?php if (( ! $this->_tpl_vars['isG4'] )): ?> <li><a href="minsshop_form.php">折込販売店情報登録</a></li><?php endif; ?>
				<li><a href="minsshop_import.php">CSV更新</a></li>
				<li>納品先マスタ</li>
			</ul>
			<h3>納品先情報<?php if ($this->_tpl_vars['forms']['id'] == ''): ?>登録<?php else: ?>更新<?php endif; ?><?php if ($this->_tpl_vars['phase'] == 'complete'): ?>完了<?php endif; ?></h3>
<?php if ($this->_tpl_vars['phase'] == 'input'): ?>
			<p class="message">内容を確認し、<?php if ($this->_tpl_vars['forms']['id'] == ''): ?>登録<?php else: ?>更新<?php endif; ?>ボタンをクリックしてください。</p>
			<form name="fm" action="mins_delive_form.php" method="post">
			
			<input type="hidden" name="matrix_cd" value="<?php echo $this->_tpl_vars['forms']['matrix_cd']; ?>
" />
				<table class="formTable">
					<tbody>
<?php if ($this->_tpl_vars['forms']['id'] != ''): ?>
						<tr>
							<th>更新日</th>
							<td>
								<?php echo $this->_tpl_vars['forms']['u_time']; ?>
<input type="hidden" name="u_time" value="<?php echo $this->_tpl_vars['forms']['u_time']; ?>
" />
							</td>
						</tr>
						
						<tr>
							<th>更新者</th>
							<td>
								<?php echo $this->_tpl_vars['forms']['m_user_name']; ?>
<input type="hidden" name="m_user_name" value="<?php echo $this->_tpl_vars['forms']['m_user_name']; ?>
" />
							</td>
						</tr>
						<tr>
							<th>週名/折込日</th>
							<td>
								<?php echo $this->_tpl_vars['forms']['week_name']; ?>
<input type="hidden" name="week_name" value="<?php echo $this->_tpl_vars['forms']['week_name']; ?>
" />
							</td>
						</tr>
<!--  						<tr>
							<th>ID</th>
							<td>
								<?php echo $this->_tpl_vars['forms']['delive_cd']; ?>

							</td>
						</tr>
					-->
<?php endif; ?>
						<tr>
							<th style="width:160px">※折込会社</th>
							<td>
<?php if (( $this->_tpl_vars['isG4'] )): ?> 
							<input type="text " name="ins_co_name"  class="dtext" value="<?php echo $this->_tpl_vars['forms']['ins_co_name']; ?>
"  readonly/>
							<input type="hidden" name="ins_co_cd" value="<?php echo $this->_tpl_vars['forms']['ins_co_cd']; ?>
" />
<?php else: ?>
							<?php echo smarty_function_html_options(array('id' => 'ins_co_cd','name' => 'ins_co_cd','options' => $this->_tpl_vars['ins_co'],'selected' => $this->_tpl_vars['forms']['ins_co_cd']), $this);?>
<?php echo $this->_tpl_vars['err']['ins_co_cd']; ?>

<?php endif; ?>
							</td>
						</tr>
						<tr><th style="width:160px">※納品先コード</th>
							<td>
							<?php if ($this->_tpl_vars['forms']['id'] != ''): ?>
								<input type="text" name="delive_cd" class="dtext" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['delive_cd'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"  readonly/>
							<?php else: ?>
								<input type="text" name="delive_cd" class="text" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['delive_cd'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><?php echo $this->_tpl_vars['err']['delive_cd']; ?>

							<?php endif; ?>
							</td>
						</tr>
						<tr><th style="width:160px">※納品先名 </th>
							<td>
								<input type="text" name="delive_name" class="text" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['delive_name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"   /><?php echo $this->_tpl_vars['err']['delive_name']; ?>

							</td>
						</tr>
<?php if ($this->_tpl_vars['forms']['id'] != ''): ?>
						<tr><th style="width:160px">※締切日時</th>
							<td>
								<?php echo smarty_function_html_options(array('id' => 'close_day','name' => 'close_day','options' => $this->_tpl_vars['close_day'],'selected' => $this->_tpl_vars['forms']['close_day']), $this);?>
 日前の 
								<?php echo smarty_function_html_options(array('id' => 'close_time','name' => 'close_time','options' => $this->_tpl_vars['close_time'],'selected' => $this->_tpl_vars['forms']['close_time']), $this);?>
時<?php echo $this->_tpl_vars['err']['close_day_time']; ?>

							</td>
						</tr>
						<tr><th style="width:160px">郵便番号</th>
							<td>
								<input type="text" name="postcode" class="text" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['postcode'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><?php echo $this->_tpl_vars['err']['postcode']; ?>

							</td>
						</tr>
						<tr><th style="width:160px">住所</th>
							<td>
								<input type="text" name="address" class="text" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['address'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><?php echo $this->_tpl_vars['err']['address']; ?>

							</td>
						</tr>
						<tr><th style="width:160px">電話番号</th>
							<td>
								<input type="text" name="tel" class="text" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['tel'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><?php echo $this->_tpl_vars['err']['tel']; ?>

							</td>
						</tr>
<?php endif; ?>
					</tbody>
				</table>
				<p class="button">
<?php if ($this->_tpl_vars['forms']['id'] != ''): ?>
					<button type="button" class="btn_return" class="submit"><span>戻る</span></button>
					<button type="button" class="btn_update" class="submit"><span>更新</span></button>
<?php else: ?>
					<button type="button" class="btn_regist" class="submit"><span>登録</span></button>
<?php endif; ?>
				</p>
				<input type="hidden" name="id" value="<?php echo $this->_tpl_vars['forms']['id']; ?>
" />
				<input type="hidden" name="mode" value="" />
			</form>

<div id="dialog" >
</div>
 
<?php endif; ?>

<?php if ($this->_tpl_vars['phase'] == 'complete'): ?>
<p class="message"><?php echo $this->_tpl_vars['message']; ?>
</p>
<ul>
<?php if ($this->_tpl_vars['forms']['id'] != ''): ?>
				<li>>> <a href="mins_delive_index.php?hist=2">一覧ページに戻る</a></li>
<?php else: ?>
				<li>>> <a href="mins_delive_index.php?hist=2">一覧ページに戻る</a></li>
<?php endif; ?>
				<li>>> <a href="mins_delive_form.php?w=<?php echo $this->_tpl_vars['forms']['matrix_cd']; ?>
">新規登録</a></li>
<?php if ($this->_tpl_vars['forms']['id'] != ''): ?>
				<li>>> <a href="mins_delive_form.php?w=<?php echo $this->_tpl_vars['forms']['matrix_cd']; ?>
&id=<?php echo $this->_tpl_vars['forms']['id']; ?>
">更新</a></li>
<?php endif; ?>
</ul>
<?php endif; ?>

		</div></div>
		<?php echo $this->_tpl_vars['footer']; ?>

	</body>
</html>